package com.zlf.blog.controller;

import com.zlf.blog.dao.pojo.SysUser;
import com.zlf.blog.utils.UserThreadLocal;
import com.zlf.blog.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.web.bind.annotation.*;

/**
 * @author zlfi1
 */
@RestController
@RequestMapping("test")
@Api(tags="拦截器测试")
public class TestController {
    public Result test(@RequestHeader("Authorization") String token){
        SysUser user= UserThreadLocal.get();
        return Result.success(user);
    }
}